package com.mcp.mcpserver.model;

import javax.validation.constraints.NotBlank;
/**
 * @author zhangxin569
 * @date 2025/8/6
 */
public class DataSourceModel {
    @NotBlank
    private String name;

    @NotBlank
    private String driverClassName;

    @NotBlank
    private String url;

    @NotBlank
    private String username;

    @NotBlank
    private String password;

    private String type ; // default

    // Getters and Setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
